# RUN: llvm-mc -arch=amdgcn -mcpu=gfx900 -disassemble -show-encoding < %s | FileCheck %s -check-prefix=GFX9

# GFX9: v_fma_f16 v5, v1, v2, v3    ; encoding: [0x05,0x00,0x06,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x00,0x06,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_fma_f16 v5, -v1, v2, v3    ; encoding: [0x05,0x00,0x06,0xd2,0x01,0x05,0x0e,0x24]
0x05,0x00,0x06,0xd2,0x01,0x05,0x0e,0x24

# GFX9: v_fma_f16 v5, v1, |v2|, v3    ; encoding: [0x05,0x02,0x06,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x02,0x06,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_fma_f16 v5, v1, v2, v3 op_sel:[1,0,0,0] ; encoding: [0x05,0x08,0x06,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x08,0x06,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_fma_f16 v5, v1, v2, v3 op_sel:[1,1,1,1] ; encoding: [0x05,0x78,0x06,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x78,0x06,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_fma_f16 v5, v1, v2, v3 clamp    ; encoding: [0x05,0x80,0x06,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x80,0x06,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_fma_legacy_f16 v5, v1, v2, v3    ; encoding: [0x05,0x00,0xee,0xd1,0x01,0x05,0x0e,0x04]
0x05,0x00,0xee,0xd1,0x01,0x05,0x0e,0x04

# GFX9: v_fma_legacy_f16 v5, v1, v2, -v3    ; encoding: [0x05,0x00,0xee,0xd1,0x01,0x05,0x0e,0x84]
0x05,0x00,0xee,0xd1,0x01,0x05,0x0e,0x84

# GFX9: v_fma_legacy_f16 v5, |v1|, v2, v3    ; encoding: [0x05,0x01,0xee,0xd1,0x01,0x05,0x0e,0x04]
0x05,0x01,0xee,0xd1,0x01,0x05,0x0e,0x04

# GFX9: v_fma_legacy_f16 v5, v1, v2, v3 clamp    ; encoding: [0x05,0x80,0xee,0xd1,0x01,0x05,0x0e,0x04]
0x05,0x80,0xee,0xd1,0x01,0x05,0x0e,0x04

# GFX9: v_div_fixup_f16 v5, 0.5, v2, v3    ; encoding: [0x05,0x00,0x07,0xd2,0xf0,0x04,0x0e,0x04]
0x05,0x00,0x07,0xd2,0xf0,0x04,0x0e,0x04

# GFX9: v_div_fixup_f16 v5, v1, 0.5, v3    ; encoding: [0x05,0x00,0x07,0xd2,0x01,0xe1,0x0d,0x04]
0x05,0x00,0x07,0xd2,0x01,0xe1,0x0d,0x04

# GFX9: v_div_fixup_f16 v5, v1, v2, 0.5    ; encoding: [0x05,0x00,0x07,0xd2,0x01,0x05,0xc2,0x03]
0x05,0x00,0x07,0xd2,0x01,0x05,0xc2,0x03

# GFX9: v_div_fixup_f16 v5, -v1, -v2, -v3    ; encoding: [0x05,0x00,0x07,0xd2,0x01,0x05,0x0e,0xe4]
0x05,0x00,0x07,0xd2,0x01,0x05,0x0e,0xe4

# GFX9: v_div_fixup_f16 v5, |v1|, |v2|, |v3|    ; encoding: [0x05,0x07,0x07,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x07,0x07,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_div_fixup_f16 v5, v1, v2, v3 op_sel:[1,0,0,0] ; encoding: [0x05,0x08,0x07,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x08,0x07,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_div_fixup_f16 v5, v1, v2, v3 op_sel:[0,0,1,0] ; encoding: [0x05,0x20,0x07,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x20,0x07,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_div_fixup_f16 v5, v1, v2, v3 op_sel:[0,0,0,1] ; encoding: [0x05,0x40,0x07,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x40,0x07,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_div_fixup_f16 v5, v1, v2, v3 clamp    ; encoding: [0x05,0x80,0x07,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x80,0x07,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_div_fixup_legacy_f16 v5, 0.5, v2, v3    ; encoding: [0x05,0x00,0xef,0xd1,0xf0,0x04,0x0e,0x04]
0x05,0x00,0xef,0xd1,0xf0,0x04,0x0e,0x04

# GFX9: v_div_fixup_legacy_f16 v5, v1, 0.5, v3    ; encoding: [0x05,0x00,0xef,0xd1,0x01,0xe1,0x0d,0x04]
0x05,0x00,0xef,0xd1,0x01,0xe1,0x0d,0x04

# GFX9: v_div_fixup_legacy_f16 v5, v1, v2, 0.5    ; encoding: [0x05,0x00,0xef,0xd1,0x01,0x05,0xc2,0x03]
0x05,0x00,0xef,0xd1,0x01,0x05,0xc2,0x03

# GFX9: v_div_fixup_legacy_f16 v5, -v1, -v2, -v3    ; encoding: [0x05,0x00,0xef,0xd1,0x01,0x05,0x0e,0xe4]
0x05,0x00,0xef,0xd1,0x01,0x05,0x0e,0xe4

# GFX9: v_div_fixup_legacy_f16 v5, |v1|, |v2|, |v3|    ; encoding: [0x05,0x07,0xef,0xd1,0x01,0x05,0x0e,0x04]
0x05,0x07,0xef,0xd1,0x01,0x05,0x0e,0x04

# GFX9: v_div_fixup_legacy_f16 v5, v1, v2, v3 clamp    ; encoding: [0x05,0x80,0xef,0xd1,0x01,0x05,0x0e,0x04]
0x05,0x80,0xef,0xd1,0x01,0x05,0x0e,0x04

# GFX9: v_mad_f16 v5, 0.5, v2, v3    ; encoding: [0x05,0x00,0x03,0xd2,0xf0,0x04,0x0e,0x04]
0x05,0x00,0x03,0xd2,0xf0,0x04,0x0e,0x04

# GFX9: v_mad_f16 v5, v1, 0.5, v3    ; encoding: [0x05,0x00,0x03,0xd2,0x01,0xe1,0x0d,0x04]
0x05,0x00,0x03,0xd2,0x01,0xe1,0x0d,0x04

# GFX9: v_mad_f16 v5, v1, v2, 0.5    ; encoding: [0x05,0x00,0x03,0xd2,0x01,0x05,0xc2,0x03]
0x05,0x00,0x03,0xd2,0x01,0x05,0xc2,0x03

# GFX9: v_mad_f16 v5, -v1, -v2, -v3    ; encoding: [0x05,0x00,0x03,0xd2,0x01,0x05,0x0e,0xe4]
0x05,0x00,0x03,0xd2,0x01,0x05,0x0e,0xe4

# GFX9: v_mad_f16 v5, |v1|, |v2|, |v3|    ; encoding: [0x05,0x07,0x03,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x07,0x03,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_mad_f16 v5, v1, v2, v3 op_sel:[1,0,0,0] ; encoding: [0x05,0x08,0x03,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x08,0x03,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_mad_f16 v5, v1, v2, v3 op_sel:[0,1,0,0] ; encoding: [0x05,0x10,0x03,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x10,0x03,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_mad_f16 v5, v1, v2, v3 op_sel:[0,0,1,0] ; encoding: [0x05,0x20,0x03,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x20,0x03,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_mad_f16 v5, v1, v2, v3 op_sel:[0,0,0,1] ; encoding: [0x05,0x40,0x03,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x40,0x03,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_mad_f16 v5, v1, v2, v3 op_sel:[1,1,1,1] ; encoding: [0x05,0x78,0x03,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x78,0x03,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_mad_f16 v5, v1, v2, v3 clamp    ; encoding: [0x05,0x80,0x03,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x80,0x03,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_mad_i16 v5, 0, v2, v3    ; encoding: [0x05,0x00,0x05,0xd2,0x80,0x04,0x0e,0x04]
0x05,0x00,0x05,0xd2,0x80,0x04,0x0e,0x04

# GFX9: v_mad_i16 v5, v1, -1, v3    ; encoding: [0x05,0x00,0x05,0xd2,0x01,0x83,0x0d,0x04]
0x05,0x00,0x05,0xd2,0x01,0x83,0x0d,0x04

# GFX9: v_mad_i16 v5, v1, v2, 63    ; encoding: [0x05,0x00,0x05,0xd2,0x01,0x05,0xfe,0x02]
0x05,0x00,0x05,0xd2,0x01,0x05,0xfe,0x02

# GFX9: v_mad_i16 v5, v1, v2, v3 op_sel:[0,0,0,1] ; encoding: [0x05,0x40,0x05,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x40,0x05,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_mad_i16 v5, v1, v2, v3 op_sel:[1,1,1,1] ; encoding: [0x05,0x78,0x05,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x78,0x05,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_mad_i16 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0x05,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x80,0x05,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_mad_legacy_f16 v5, 0.5, v2, v3    ; encoding: [0x05,0x00,0xea,0xd1,0xf0,0x04,0x0e,0x04]
0x05,0x00,0xea,0xd1,0xf0,0x04,0x0e,0x04

# GFX9: v_mad_legacy_f16 v5, v1, 0.5, v3    ; encoding: [0x05,0x00,0xea,0xd1,0x01,0xe1,0x0d,0x04]
0x05,0x00,0xea,0xd1,0x01,0xe1,0x0d,0x04

# GFX9: v_mad_legacy_f16 v5, v1, v2, 0.5    ; encoding: [0x05,0x00,0xea,0xd1,0x01,0x05,0xc2,0x03]
0x05,0x00,0xea,0xd1,0x01,0x05,0xc2,0x03

# GFX9: v_mad_legacy_f16 v5, -v1, -v2, -v3    ; encoding: [0x05,0x00,0xea,0xd1,0x01,0x05,0x0e,0xe4]
0x05,0x00,0xea,0xd1,0x01,0x05,0x0e,0xe4

# GFX9: v_mad_legacy_f16 v5, |v1|, |v2|, |v3|    ; encoding: [0x05,0x07,0xea,0xd1,0x01,0x05,0x0e,0x04]
0x05,0x07,0xea,0xd1,0x01,0x05,0x0e,0x04

# GFX9: v_mad_legacy_f16 v5, v1, v2, v3 clamp    ; encoding: [0x05,0x80,0xea,0xd1,0x01,0x05,0x0e,0x04]
0x05,0x80,0xea,0xd1,0x01,0x05,0x0e,0x04

# GFX9: v_mad_legacy_i16 v5, 0, v2, v3    ; encoding: [0x05,0x00,0xec,0xd1,0x80,0x04,0x0e,0x04]
0x05,0x00,0xec,0xd1,0x80,0x04,0x0e,0x04

# GFX9: v_mad_legacy_i16 v5, v1, -1, v3    ; encoding: [0x05,0x00,0xec,0xd1,0x01,0x83,0x0d,0x04]
0x05,0x00,0xec,0xd1,0x01,0x83,0x0d,0x04

# GFX9: v_mad_legacy_i16 v5, v1, v2, 0xc400    ; encoding: [0x05,0x00,0xec,0xd1,0x01,0x05,0xfe,0x03]
0x05,0x00,0xec,0xd1,0x01,0x05,0xde,0x03

# GFX9: v_mad_legacy_i16 v5, v1, v2, 0xc400 clamp ; encoding: [0x05,0x80,0xec,0xd1,0x01,0x05,0xfe,0x03]
0x05,0x80,0xec,0xd1,0x01,0x05,0xde,0x03

# GFX9: v_mad_legacy_u16 v5, 0, v2, v3    ; encoding: [0x05,0x00,0xeb,0xd1,0x80,0x04,0x0e,0x04]
0x05,0x00,0xeb,0xd1,0x80,0x04,0x0e,0x04

# GFX9: v_mad_legacy_u16 v5, v1, -1, v3    ; encoding: [0x05,0x00,0xeb,0xd1,0x01,0x83,0x0d,0x04]
0x05,0x00,0xeb,0xd1,0x01,0x83,0x0d,0x04

# GFX9: v_mad_legacy_u16 v5, v1, v2, 0xc400    ; encoding: [0x05,0x00,0xeb,0xd1,0x01,0x05,0xfe,0x03]
0x05,0x00,0xeb,0xd1,0x01,0x05,0xde,0x03

# GFX9: v_mad_legacy_u16 v5, v1, v2, 0xc400 clamp ; encoding: [0x05,0x80,0xeb,0xd1,0x01,0x05,0xfe,0x03]
0x05,0x80,0xeb,0xd1,0x01,0x05,0xde,0x03

# GFX9: v_mad_u16 v5, 0, v2, v3    ; encoding: [0x05,0x00,0x04,0xd2,0x80,0x04,0x0e,0x04]
0x05,0x00,0x04,0xd2,0x80,0x04,0x0e,0x04

# GFX9: v_mad_u16 v5, v1, -1, v3    ; encoding: [0x05,0x00,0x04,0xd2,0x01,0x83,0x0d,0x04]
0x05,0x00,0x04,0xd2,0x01,0x83,0x0d,0x04

# GFX9: v_mad_u16 v5, v1, v2, 63    ; encoding: [0x05,0x00,0x04,0xd2,0x01,0x05,0xfe,0x02]
0x05,0x00,0x04,0xd2,0x01,0x05,0xfe,0x02

# GFX9: v_mad_u16 v5, v1, v2, v3 op_sel:[1,0,0,0] ; encoding: [0x05,0x08,0x04,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x08,0x04,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_mad_u16 v5, v1, v2, v3 op_sel:[0,0,0,1] ; encoding: [0x05,0x40,0x04,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x40,0x04,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_mad_u16 v5, v1, v2, v3 op_sel:[1,1,1,1] ; encoding: [0x05,0x78,0x04,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x78,0x04,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_mad_u16 v5, v1, v2, v3 clamp ; encoding: [0x05,0x80,0x04,0xd2,0x01,0x05,0x0e,0x04]
0x05,0x80,0x04,0xd2,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, v1, v2, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mix_f32 v255, v1, v2, v3    ; encoding: [0xff,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0xff,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, v255, v2, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0xff,0x05,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0xff,0x05,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, s1, v2, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x01,0x04,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, s101, v2, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x65,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x65,0x04,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, flat_scratch_lo, v2, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x66,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x66,0x04,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, flat_scratch_hi, v2, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x67,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x67,0x04,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, xnack_mask_hi, v2, v3 ; encoding: [0x05,0x00,0xa0,0xd3,0x69,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x69,0x04,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, vcc_lo, v2, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x6a,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x6a,0x04,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, vcc_hi, v2, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x6b,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x6b,0x04,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, m0, v2, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x7c,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x7c,0x04,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, exec_lo, v2, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x7e,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x7e,0x04,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, exec_hi, v2, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x7f,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x7f,0x04,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, v1, v255, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xff,0x0f,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xff,0x0f,0x04

# GFX9: v_mad_mix_f32 v5, v1, s2, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x0c,0x04]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x0c,0x04

# GFX9: v_mad_mix_f32 v5, v1, s101, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xcb,0x0c,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xcb,0x0c,0x04

# GFX9: v_mad_mix_f32 v5, v1, flat_scratch_lo, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xcd,0x0c,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xcd,0x0c,0x04

# GFX9: v_mad_mix_f32 v5, v1, flat_scratch_hi, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xcf,0x0c,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xcf,0x0c,0x04

# GFX9: v_mad_mix_f32 v5, v1, vcc_lo, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xd5,0x0c,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xd5,0x0c,0x04

# GFX9: v_mad_mix_f32 v5, v1, vcc_hi, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xd7,0x0c,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xd7,0x0c,0x04

# GFX9: v_mad_mix_f32 v5, v1, m0, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xf9,0x0c,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xf9,0x0c,0x04

# GFX9: v_mad_mix_f32 v5, v1, exec_lo, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xfd,0x0c,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xfd,0x0c,0x04

# GFX9: v_mad_mix_f32 v5, v1, exec_hi, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xff,0x0c,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xff,0x0c,0x04

# GFX9: v_mad_mix_f32 v5, v1, v2, v255    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0xfe,0x07]
0x05,0x00,0xa0,0xd3,0x01,0x05,0xfe,0x07

# GFX9: v_mad_mix_f32 v5, v1, v2, s3    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x00]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x00

# GFX9: v_mad_mix_f32 v5, v1, v2, s101    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x96,0x01]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x96,0x01

# GFX9: v_mad_mix_f32 v5, v1, v2, flat_scratch_lo    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x9a,0x01]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x9a,0x01

# GFX9: v_mad_mix_f32 v5, v1, v2, flat_scratch_hi    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x9e,0x01]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x9e,0x01

# GFX9: v_mad_mix_f32 v5, v1, v2, vcc_lo    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0xaa,0x01]
0x05,0x00,0xa0,0xd3,0x01,0x05,0xaa,0x01

# GFX9: v_mad_mix_f32 v5, v1, v2, vcc_hi    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0xae,0x01]
0x05,0x00,0xa0,0xd3,0x01,0x05,0xae,0x01

# GFX9: v_mad_mix_f32 v5, v1, v2, m0    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0xf2,0x01]
0x05,0x00,0xa0,0xd3,0x01,0x05,0xf2,0x01

# GFX9: v_mad_mix_f32 v5, v1, v2, exec_lo    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0xfa,0x01]
0x05,0x00,0xa0,0xd3,0x01,0x05,0xfa,0x01

# GFX9: v_mad_mix_f32 v5, v1, v2, exec_hi    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0xfe,0x01]
0x05,0x00,0xa0,0xd3,0x01,0x05,0xfe,0x01

# GFX9: v_mad_mix_f32 v5, v1, v2, v3 op_sel:[1,0,0]    ; encoding: [0x05,0x08,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x08,0xa0,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, v1, v2, v3 op_sel:[0,1,0]    ; encoding: [0x05,0x10,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x10,0xa0,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, v1, v2, v3 op_sel:[0,0,1]    ; encoding: [0x05,0x20,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x20,0xa0,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, v1, v2, v3 op_sel:[1,1,1]    ; encoding: [0x05,0x38,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x38,0xa0,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, v1, v2, v3 op_sel_hi:[1,0,0]    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x0c]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x0c

# GFX9: v_mad_mix_f32 v5, v1, v2, v3 op_sel_hi:[0,1,0]    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x14]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x14

# GFX9: v_mad_mix_f32 v5, v1, v2, v3 op_sel_hi:[0,0,1]    ; encoding: [0x05,0x40,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x40,0xa0,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, v1, v2, v3 op_sel_hi:[1,1,1]    ; encoding: [0x05,0x40,0xa0,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x40,0xa0,0xd3,0x01,0x05,0x0e,0x1c

# GFX9: v_mad_mix_f32 v5, -v1, v2, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x24]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x24

# GFX9: v_mad_mix_f32 v5, v1, -v2, v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x44]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x44

# GFX9: v_mad_mix_f32 v5, v1, v2, -v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x84]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x84

# GFX9: v_mad_mix_f32 v5, -v1, -v2, -v3    ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0xe4]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0xe4

# GFX9: v_mad_mix_f32 v5, |v1|, v2, v3    ; encoding: [0x05,0x01,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x01,0xa0,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, v1, |v2|, v3    ; encoding: [0x05,0x02,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x02,0xa0,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, v1, v2, |v3|    ; encoding: [0x05,0x04,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x04,0xa0,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, |v1|, |v2|, |v3|    ; encoding: [0x05,0x07,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x07,0xa0,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mix_f32 v5, v1, v2, v3 clamp    ; encoding: [0x05,0x80,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x80,0xa0,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, v2, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v255, v1, v2, v3    ; encoding: [0xff,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0xff,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, v255, v2, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0xff,0x05,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0xff,0x05,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, s1, v2, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x01,0x04,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, s101, v2, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x65,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x65,0x04,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, flat_scratch_lo, v2, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x66,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x66,0x04,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, flat_scratch_hi, v2, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x67,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x67,0x04,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, vcc_lo, v2, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x6a,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x6a,0x04,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, vcc_hi, v2, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x6b,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x6b,0x04,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, m0, v2, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x7c,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x7c,0x04,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, exec_lo, v2, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x7e,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x7e,0x04,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, exec_hi, v2, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x7f,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x7f,0x04,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, v255, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xff,0x0f,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xff,0x0f,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, s2, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x0c,0x04]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x0c,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, s101, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xcb,0x0c,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xcb,0x0c,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, flat_scratch_lo, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xcd,0x0c,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xcd,0x0c,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, flat_scratch_hi, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xcf,0x0c,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xcf,0x0c,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, vcc_lo, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xd5,0x0c,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xd5,0x0c,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, vcc_hi, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xd7,0x0c,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xd7,0x0c,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, m0, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xf9,0x0c,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xf9,0x0c,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, exec_lo, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xfd,0x0c,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xfd,0x0c,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, exec_hi, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xff,0x0c,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xff,0x0c,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, v2, v255    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0xfe,0x07]
0x05,0x00,0xa2,0xd3,0x01,0x05,0xfe,0x07

# GFX9: v_mad_mixhi_f16 v5, v1, v2, s3    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x00]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x00

# GFX9: v_mad_mixhi_f16 v5, v1, v2, s101    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x96,0x01]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x96,0x01

# GFX9: v_mad_mixhi_f16 v5, v1, v2, flat_scratch_lo    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x9a,0x01]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x9a,0x01

# GFX9: v_mad_mixhi_f16 v5, v1, v2, flat_scratch_hi    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x9e,0x01]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x9e,0x01

# GFX9: v_mad_mixhi_f16 v5, v1, v2, vcc_lo    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0xaa,0x01]
0x05,0x00,0xa2,0xd3,0x01,0x05,0xaa,0x01

# GFX9: v_mad_mixhi_f16 v5, v1, v2, vcc_hi    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0xae,0x01]
0x05,0x00,0xa2,0xd3,0x01,0x05,0xae,0x01

# GFX9: v_mad_mixhi_f16 v5, v1, v2, m0    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0xf2,0x01]
0x05,0x00,0xa2,0xd3,0x01,0x05,0xf2,0x01

# GFX9: v_mad_mixhi_f16 v5, v1, v2, exec_lo    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0xfa,0x01]
0x05,0x00,0xa2,0xd3,0x01,0x05,0xfa,0x01

# GFX9: v_mad_mixhi_f16 v5, v1, v2, exec_hi    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0xfe,0x01]
0x05,0x00,0xa2,0xd3,0x01,0x05,0xfe,0x01

# GFX9: v_mad_mixhi_f16 v5, v1, v2, v3 op_sel:[1,0,0]    ; encoding: [0x05,0x08,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x08,0xa2,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, v2, v3 op_sel:[0,1,0]    ; encoding: [0x05,0x10,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x10,0xa2,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, v2, v3 op_sel:[0,0,1]    ; encoding: [0x05,0x20,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x20,0xa2,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, v2, v3 op_sel:[1,1,1]    ; encoding: [0x05,0x38,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x38,0xa2,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, v2, v3 op_sel_hi:[1,0,0]    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x0c]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x0c

# GFX9: v_mad_mixhi_f16 v5, v1, v2, v3 op_sel_hi:[0,1,0]    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x14]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x14

# GFX9: v_mad_mixhi_f16 v5, v1, v2, v3 op_sel_hi:[0,0,1]    ; encoding: [0x05,0x40,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x40,0xa2,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, v2, v3 op_sel_hi:[1,1,1]    ; encoding: [0x05,0x40,0xa2,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x40,0xa2,0xd3,0x01,0x05,0x0e,0x1c

# GFX9: v_mad_mixhi_f16 v5, -v1, v2, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x24]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x24

# GFX9: v_mad_mixhi_f16 v5, v1, -v2, v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x44]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x44

# GFX9: v_mad_mixhi_f16 v5, v1, v2, -v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x84]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x84

# GFX9: v_mad_mixhi_f16 v5, -v1, -v2, -v3    ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0xe4]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0xe4

# GFX9: v_mad_mixhi_f16 v5, |v1|, v2, v3    ; encoding: [0x05,0x01,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x01,0xa2,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, |v2|, v3    ; encoding: [0x05,0x02,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x02,0xa2,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, v2, |v3|    ; encoding: [0x05,0x04,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x04,0xa2,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, |v1|, |v2|, |v3|    ; encoding: [0x05,0x07,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x07,0xa2,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixhi_f16 v5, v1, v2, v3 clamp    ; encoding: [0x05,0x80,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x80,0xa2,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, v2, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v255, v1, v2, v3    ; encoding: [0xff,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0xff,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, v255, v2, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0xff,0x05,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0xff,0x05,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, s1, v2, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x01,0x04,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, s101, v2, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x65,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x65,0x04,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, flat_scratch_lo, v2, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x66,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x66,0x04,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, flat_scratch_hi, v2, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x67,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x67,0x04,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, vcc_lo, v2, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x6a,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x6a,0x04,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, vcc_hi, v2, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x6b,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x6b,0x04,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, m0, v2, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x7c,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x7c,0x04,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, exec_lo, v2, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x7e,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x7e,0x04,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, exec_hi, v2, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x7f,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x7f,0x04,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, v255, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xff,0x0f,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xff,0x0f,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, s2, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x0c,0x04]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x0c,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, s101, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xcb,0x0c,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xcb,0x0c,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, flat_scratch_lo, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xcd,0x0c,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xcd,0x0c,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, flat_scratch_hi, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xcf,0x0c,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xcf,0x0c,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, vcc_lo, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xd5,0x0c,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xd5,0x0c,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, vcc_hi, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xd7,0x0c,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xd7,0x0c,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, m0, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xf9,0x0c,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xf9,0x0c,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, exec_lo, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xfd,0x0c,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xfd,0x0c,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, exec_hi, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xff,0x0c,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xff,0x0c,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, v2, v255    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0xfe,0x07]
0x05,0x00,0xa1,0xd3,0x01,0x05,0xfe,0x07

# GFX9: v_mad_mixlo_f16 v5, v1, v2, s3    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x00]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x00

# GFX9: v_mad_mixlo_f16 v5, v1, v2, s101    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x96,0x01]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x96,0x01

# GFX9: v_mad_mixlo_f16 v5, v1, v2, flat_scratch_lo    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x9a,0x01]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x9a,0x01

# GFX9: v_mad_mixlo_f16 v5, v1, v2, flat_scratch_hi    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x9e,0x01]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x9e,0x01

# GFX9: v_mad_mixlo_f16 v5, v1, v2, vcc_lo    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0xaa,0x01]
0x05,0x00,0xa1,0xd3,0x01,0x05,0xaa,0x01

# GFX9: v_mad_mixlo_f16 v5, v1, v2, vcc_hi    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0xae,0x01]
0x05,0x00,0xa1,0xd3,0x01,0x05,0xae,0x01

# GFX9: v_mad_mixlo_f16 v5, v1, v2, m0    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0xf2,0x01]
0x05,0x00,0xa1,0xd3,0x01,0x05,0xf2,0x01

# GFX9: v_mad_mixlo_f16 v5, v1, v2, exec_lo    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0xfa,0x01]
0x05,0x00,0xa1,0xd3,0x01,0x05,0xfa,0x01

# GFX9: v_mad_mixlo_f16 v5, v1, v2, exec_hi    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0xfe,0x01]
0x05,0x00,0xa1,0xd3,0x01,0x05,0xfe,0x01

# GFX9: v_mad_mixlo_f16 v5, v1, v2, v3 op_sel:[1,0,0]    ; encoding: [0x05,0x08,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x08,0xa1,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, v2, v3 op_sel:[0,1,0]    ; encoding: [0x05,0x10,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x10,0xa1,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, v2, v3 op_sel:[0,0,1]    ; encoding: [0x05,0x20,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x20,0xa1,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, v2, v3 op_sel:[1,1,1]    ; encoding: [0x05,0x38,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x38,0xa1,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, v2, v3 op_sel_hi:[1,0,0]    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x0c]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x0c

# GFX9: v_mad_mixlo_f16 v5, v1, v2, v3 op_sel_hi:[0,1,0]    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x14]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x14

# GFX9: v_mad_mixlo_f16 v5, v1, v2, v3 op_sel_hi:[0,0,1]    ; encoding: [0x05,0x40,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x40,0xa1,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, v2, v3 op_sel_hi:[1,1,1]    ; encoding: [0x05,0x40,0xa1,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x40,0xa1,0xd3,0x01,0x05,0x0e,0x1c

# GFX9: v_mad_mixlo_f16 v5, -v1, v2, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x24]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x24

# GFX9: v_mad_mixlo_f16 v5, v1, -v2, v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x44]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x44

# GFX9: v_mad_mixlo_f16 v5, v1, v2, -v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x84]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x84

# GFX9: v_mad_mixlo_f16 v5, -v1, -v2, -v3    ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0xe4]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0xe4

# GFX9: v_mad_mixlo_f16 v5, |v1|, v2, v3    ; encoding: [0x05,0x01,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x01,0xa1,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, |v2|, v3    ; encoding: [0x05,0x02,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x02,0xa1,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, v2, |v3|    ; encoding: [0x05,0x04,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x04,0xa1,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, |v1|, |v2|, |v3|    ; encoding: [0x05,0x07,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x07,0xa1,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_mad_mixlo_f16 v5, v1, v2, v3 clamp    ; encoding: [0x05,0x80,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x80,0xa1,0xd3,0x01,0x05,0x0e,0x04

# GFX9: v_interp_p2_f16 v5, v2, attr0.x, v3 ; encoding: [0x05,0x00,0x77,0xd2,0x00,0x04,0x0e,0x04]
0x05,0x00,0x77,0xd2,0x00,0x04,0x0e,0x04

# GFX9: v_interp_p2_f16 v5, -v2, attr0.x, v3 ; encoding: [0x05,0x00,0x77,0xd2,0x00,0x04,0x0e,0x44]
0x05,0x00,0x77,0xd2,0x00,0x04,0x0e,0x44

# GFX9: v_interp_p2_f16 v5, v2, attr0.x, |v3| ; encoding: [0x05,0x04,0x77,0xd2,0x00,0x04,0x0e,0x04]
0x05,0x04,0x77,0xd2,0x00,0x04,0x0e,0x04

# GFX9: v_interp_p2_f16 v5, v2, attr0.w, v3 ; encoding: [0x05,0x00,0x77,0xd2,0xc0,0x04,0x0e,0x04]
0x05,0x00,0x77,0xd2,0xc0,0x04,0x0e,0x04

# GFX9: v_interp_p2_f16 v5, v2, attr0.x, v3 high ; encoding: [0x05,0x00,0x77,0xd2,0x00,0x05,0x0e,0x04]
0x05,0x00,0x77,0xd2,0x00,0x05,0x0e,0x04

# GFX9: v_interp_p2_f16 v5, v2, attr0.x, v3 clamp ; encoding: [0x05,0x80,0x77,0xd2,0x00,0x04,0x0e,0x04]
0x05,0x80,0x77,0xd2,0x00,0x04,0x0e,0x04

# GFX9: v_interp_p2_legacy_f16 v5, v2, attr31.x, v3 ; encoding: [0x05,0x00,0x76,0xd2,0x1f,0x04,0x0e,0x04]
0x05,0x00,0x76,0xd2,0x1f,0x04,0x0e,0x04

# GFX9: v_interp_p2_legacy_f16 v5, -v2, attr0.x, v3 ; encoding: [0x05,0x00,0x76,0xd2,0x00,0x04,0x0e,0x44]
0x05,0x00,0x76,0xd2,0x00,0x04,0x0e,0x44

# GFX9: v_interp_p2_legacy_f16 v5, v2, attr0.x, |v3| ; encoding: [0x05,0x04,0x76,0xd2,0x00,0x04,0x0e,0x04]
0x05,0x04,0x76,0xd2,0x00,0x04,0x0e,0x04

# GFX9: v_interp_p2_legacy_f16 v5, v2, attr0.w, v3 ; encoding: [0x05,0x00,0x76,0xd2,0xc0,0x04,0x0e,0x04]
0x05,0x00,0x76,0xd2,0xc0,0x04,0x0e,0x04

# GFX9: v_interp_p2_legacy_f16 v5, v2, attr0.x, v3 high ; encoding: [0x05,0x00,0x76,0xd2,0x00,0x05,0x0e,0x04]
0x05,0x00,0x76,0xd2,0x00,0x05,0x0e,0x04

# GFX9: v_interp_p2_legacy_f16 v5, v2, attr0.x, v3 clamp ; encoding: [0x05,0x80,0x76,0xd2,0x00,0x04,0x0e,0x04]
0x05,0x80,0x76,0xd2,0x00,0x04,0x0e,0x04

# GFX9: v_add_f64 v[5:6], xnack_mask, v[2:3] ; encoding: [0x05,0x00,0x80,0xd2,0x68,0x04,0x02,0x00]
0x05,0x00,0x80,0xd2,0x68,0x04,0x02,0x00

# GFX9: v_cvt_norm_i16_f16_e64 v5, -4.0 ; encoding: [0x05,0x00,0x8d,0xd1,0xf7,0x00,0x00,0x00]
0x05,0x00,0x8d,0xd1,0xf7,0x00,0x00,0x00

# GFX9: v_cvt_norm_i16_f16_e64 v5, -v1 ; encoding: [0x05,0x00,0x8d,0xd1,0x01,0x01,0x00,0x20]
0x05,0x00,0x8d,0xd1,0x01,0x01,0x00,0x20

# GFX9: v_cvt_norm_i16_f16_e64 v5, |v1| ; encoding: [0x05,0x01,0x8d,0xd1,0x01,0x01,0x00,0x00]
0x05,0x01,0x8d,0xd1,0x01,0x01,0x00,0x00

# GFX9: v_cvt_norm_u16_f16_e64 v255, v1 ; encoding: [0xff,0x00,0x8e,0xd1,0x01,0x01,0x00,0x00]
0xff,0x00,0x8e,0xd1,0x01,0x01,0x00,0x00

# GFX9: v_cvt_norm_u16_f16_e64 v5, v255 ; encoding: [0x05,0x00,0x8e,0xd1,0xff,0x01,0x00,0x00]
0x05,0x00,0x8e,0xd1,0xff,0x01,0x00,0x00

# GFX9: v_sat_pk_u8_i16_e64 v5, -1 ; encoding: [0x05,0x00,0x8f,0xd1,0xc1,0x00,0x00,0x00]
0x05,0x00,0x8f,0xd1,0xc1,0x00,0x00,0x00

# GFX9: v_sat_pk_u8_i16_e64 v255, v1 ; encoding: [0xff,0x00,0x8f,0xd1,0x01,0x01,0x00,0x00]
0xff,0x00,0x8f,0xd1,0x01,0x01,0x00,0x00

# GFX9: v_screen_partition_4se_b32_e64 v5, v1 ; encoding: [0x05,0x00,0x77,0xd1,0x01,0x01,0x00,0x00]
0x05,0x00,0x77,0xd1,0x01,0x01,0x00,0x00

# GFX9: v_add_u32_e64 v84, v13, s31 clamp ; encoding: [0x54,0x80,0x34,0xd1,0x0d,0x3f,0x00,0x00]
0x54,0x80,0x34,0xd1,0x0d,0x3f,0x00,0x00

# GFX9: v_sub_u32_e64 v84, v13, s31 clamp ; encoding: [0x54,0x80,0x35,0xd1,0x0d,0x3f,0x00,0x00]
0x54,0x80,0x35,0xd1,0x0d,0x3f,0x00,0x00

# GFX9: v_subrev_u32_e64 v84, v13, s31 clamp ; encoding: [0x54,0x80,0x36,0xd1,0x0d,0x3f,0x00,0x00]
0x54,0x80,0x36,0xd1,0x0d,0x3f,0x00,0x00

# GFX9: v_addc_co_u32_e64 v84, s[4:5], v13, v31, vcc clamp ; encoding: [0x54,0x84,0x1c,0xd1,0x0d,0x3f,0xaa,0x01]
0x54,0x84,0x1c,0xd1,0x0d,0x3f,0xaa,0x01

# GFX9: v_subb_co_u32_e64 v84, s[2:3], v13, v31, vcc clamp ; encoding: [0x54,0x82,0x1d,0xd1,0x0d,0x3f,0xaa,0x01]
0x54,0x82,0x1d,0xd1,0x0d,0x3f,0xaa,0x01

# GFX9: v_subbrev_co_u32_e64 v84, vcc, v13, v31, s[6:7] clamp ; encoding: [0x54,0xea,0x1e,0xd1,0x0d,0x3f,0x1a,0x00]
0x54,0xea,0x1e,0xd1,0x0d,0x3f,0x1a,0x00

# GFX9: v_add_co_u32_e64 v84, s[4:5], v13, v31 clamp ; encoding: [0x54,0x84,0x19,0xd1,0x0d,0x3f,0x02,0x00]
0x54,0x84,0x19,0xd1,0x0d,0x3f,0x02,0x00

# GFX9: v_sub_co_u32_e64 v84, s[2:3], v13, v31 clamp ; encoding: [0x54,0x82,0x1a,0xd1,0x0d,0x3f,0x02,0x00]
0x54,0x82,0x1a,0xd1,0x0d,0x3f,0x02,0x00

# GFX9: v_subrev_co_u32_e64 v84, vcc, v13, v31 clamp ; encoding: [0x54,0xea,0x1b,0xd1,0x0d,0x3f,0x02,0x00]
0x54,0xea,0x1b,0xd1,0x0d,0x3f,0x02,0x00

# GFX9: v_add_i32 v1, v2, v3 clamp ; encoding: [0x01,0x80,0x9c,0xd2,0x02,0x07,0x02,0x00]
0x01,0x80,0x9c,0xd2,0x02,0x07,0x02,0x00

# GFX9: v_sub_i32 v1, v2, v3 clamp ; encoding: [0x01,0x80,0x9d,0xd2,0x02,0x07,0x02,0x00]
0x01,0x80,0x9d,0xd2,0x02,0x07,0x02,0x00
